You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > Percentile Method > Statistics.Percentile Method ([In] TVec, [In] double[], double[], TPercentileMethod)
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
Statistics.Percentile Method ([In] TVec, [In] double[], double[], TPercentileMethod)

Percentile (several percentiles in one go).

Syntax
C#
Visual Basic
public static void Percentile([In] TVec X, [In] double[] P, ref double[] Percentiles, TPercentileMethod Method);

This overload calculates percentiles for all P elements in one pass. The advantage of this overload is X sample values only have to be sorted once.

procedure Example; var Data: Vector; P, Pct: Array of double; begin Data.LoadFromFile('c:tempExamplesDataPercentile.vec'); SetLength(P,4); SetLength(Pct,4); Percentile(Data,P,Pct); end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!